Grails : Tag - eachError
This page last changed on Feb 17, 2006 by [email protected].
Tag - eachErrorDescriptionLoops through each error of the specified bean or model. If no arguments are specified it will go through all model attributes and check for errors. Parameters
ExamplesLoop through each error in the "book" bean: <g:eachError bean="${book}"> <li>${it}</li> </g:eachError> Loop through each error in the title field of the "book" bean: <g:eachError bean="${book}" field="title"> <li>${it}</li> </g:eachError> Loop through each error in model: <g:eachError bean="[book1:book1,book2:book2]" field="title"> <li>${it}</li> </g:eachError> |
Document generated by Confluence on Mar 29, 2006 08:46 |